package cn.faster.sys.service;

import cn.faster.sys.entity.SysRole;
import cn.faster.sys.vo.SysRoleVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author xiaoCoder
 * @since 2021-06-10
 */

public interface SysRoleService extends IService<SysRole>{

    /**
	* 根据id查询Role
	*/
    SysRole getRoleById(Integer id) throws Exception;

    /**
	* 查询Role列表
	*/
    List<SysRole> listRole(Map<String, Object> map) throws Exception;


    /**
	* 新增Role
	*/
	Integer addRole(SysRoleVO sysRoleVO) throws Exception;

	/**
	* 更新Role
	*/
	Integer updateRole(SysRole sysRole) throws Exception;

	/**
	* 根据id物理删除Role
	*/
	Integer deleteRoleById(Integer id)	throws Exception;

	/**
	* 根据id逻辑删除Role
	*/
	Integer removeRoleById(Integer id)	throws Exception;
}
